home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970104-19970326 / 000149_news@columbia.edu _Fri Jan 31 05:03:48 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id FAA26480
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 31 Jan 1997 05:03:48 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id FAA03253
  7.     for kermit.misc@watsun; Fri, 31 Jan 1997 05:03:47 -0500 (EST)
  8. Path: news.columbia.edu!sol.ctr.columbia.edu!news.indiana.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!newshost.atl.lmco.com!news.vf.lmco.com!usenet
  9. From: groberg@slr.orl.mmc.com (Michael Groberg)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: ECHO of filename to be sent within script
  12. Date: 31 Jan 1997 09:58:03 GMT
  13. Organization: Lockheed Martin Electronics & Missiles
  14. Lines: 35
  15. Message-ID: <5csfnb$7kg@morgan.vf.lmco.com>
  16. References: <5ckq5k$kg4@morgan.vf.lmco.com> <5cntcd$ils$1@apakabar.cc.columbia.edu>
  17. NNTP-Posting-Host: s401493.orl.mmc.com
  18. Mime-Version: 1.0
  19. Content-Type: Text/Plain; charset=US-ASCII
  20. X-Newsreader: WinVN 0.99.7
  21. Xref: news.columbia.edu comp.protocols.kermit.misc:6499
  22.  
  23. In article <5cntcd$ils$1@apakabar.cc.columbia.edu>, fdc@watsun.cc.columbia.edu 
  24. says...
  25. >
  26. >In article <5ckq5k$kg4@morgan.vf.lmco.com>,
  27. >Michael Groberg <groberg@slr.orl.mmc.com> wrote:
  28. >: Does anyone know of a way to echo the filename that is being sent to the
  29. >: user. The "ECHO \%1" command doesn't work and I can't find an example
  30. >: in any of the scripts or documents.
  31. >: 
  32. >Your question is a bit vague.  If Kermit is in remote mode, it can't echo
  33. >anything because it is hidden behind the local Kermit's file transfer
  34. >display.  If it is in local mode, you can see the name on the file transfer
  35. >display anyway.
  36. >
  37. >Kermit 95 and C-Kermit have a variable \f(filespec) that contains the
  38. >file specification used in the most recent file-transfer command.
  39. >
  40. >If you need the filename to be in a certain variable, you can define a
  41. >macro for this, like:
  42. >
  43. >  define mysend echo sending \%1, send \%1, end \v(status)
  44. >
  45. >- Frank
  46. >
  47. >
  48.  
  49. Unfortunately, with Kermit 3.14, the "echo \%1" does not echo anything except
  50. a blank line. I am using Kermit for file transfer only, and once I 
  51. successfully complete the transfer I want to copy the file to another 
  52. directory, and then delete it from the original. So far I have not found
  53. a way to determine what file is passed to kermit on the command line.
  54.  
  55. Thanks.
  56. - Mike
  57.